<div class="content4 content41 page" data-page="loanNotice" id="loanNotice">
	<p class="location">
		当前位置:
		<label class="locationInfo"><a href="javascript:void(0)" class="loanNoticeList">放款单列表</a> &nbsp;&gt;&nbsp;放款详情</label>
		<span class="print" style="float: right; margin-top: 10px; margin-right: 10px; text-align: justify;">打印</span>
	</p>
	<div class="barcode" style="margin-top: 10px; margin-right: 10px; float: right;"></div>
	<div class="clear"></div>
	<div class="loanVV">
		
	</div>
	<script type="text/template" class="loanV">
		{@each datas as it}
		<div>融资编号：${it.financeNumber}</div>
		<div>业务类型：${getValueByKey(7, it.productType)}</div>
		<div>融资货物：${it.containerInventorys[0].containerBulkstocks[0].bulkstockName}(${it.containerInventorys[0].containerBulkstocks[0].specification})</div>
		{@/each}
	</script>
	<div class="clear"></div>
	<p style="margin-top: 20px;">
		<div class="line1"></div>
		<div class="loan_type">放款信息</div>
		<div class="line2"></div>
	</p>
	<div class="loanNoticeContent" action="consentLoanNotice" version="v1.0">
		<input type="hidden" name="financeId" />
		<input type="hidden" name="financeNumber" />
		<input type="hidden" name="loanNoticeId" />
		<div class="loan_info1">
			<p><span class="requiredInput">*</span>放款时间：
				<input disabled="disabled" class="loan_field-input Wdate FromTime" codeName="放款时间" isNUll="1" type="text" id="loanDate" name="loanDate" placeholder="请输入时间" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false,readOnly:true})" style="width: 190px;height: 30px;" />
				<span style="margin-left: 100px;"><span class="requiredInput">*</span>放款方式：</span>
				<select disabled="disabled" class="sel-recommend  loan_field-input" name="loanMethod" id="loanMethod">
					<option value="1">现金</option>
					<option value="2">支票</option>
					<option value="3">转账</option>
				</select>
				<span style="margin-left: 93px;"><span class="requiredInput">*</span>放款金额：</span>
				<input disabled="disabled" class="input-loan-amount" type="text" name="loanAmount" id="loanAmount" codeName="放款金额" isNUll="1" onchange="value=value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'')" />
				<span class="loanAmountUpper" style="float: right; display: block; position: relative; left: -219px; top: 33px; color: red;"></span>
			</p>
		</div>
		<div class="loan_info1">
			<div style="margin-top: 15px;">是否自动通知装货：<select name="autoNotice"><option selected="selected" value="true">是</option><option value="false">否</option></select></div>
		</div>
		<div class="loan_info1">
			<div style="margin-top: 15px;">收款单位：<span class="data" name="enterpriseName"></span></div>
			<div style="margin-top: 15px;">申请部门：<span class="data" name="applyDepartment"></span></div>
			<div style="margin-top: 15px;">申请人：<span class="data" name="applicant"></span></div>
			<div style="margin-top: 15px;">申请时间：<span class="data" name="applyDate"></span></div>
		</div>
		<div class="loan_info4">
			<span style="margin-left: 15px;">放款凭证：</span>
			<input type="file" name="file" id="loanIntro" class="none" />
			<input type="hidden" name="fileUuids" class="fileUuids" />
		</div>
		<div class="financeFilesNormList">
			<script type="text/template" class="financeFilesNormListTpl">
				{@each datas as item}
				{@each item.financeFilesInfoList as it, index}
				<div>
					${it.normFileName}：<input class="none normFile" name="file" type="file" id="normFile${index}"/><input type="hidden" name="filesInfoId" value="${it.filesInfoId}"><input type="hidden" name="isNotNull" value="${it.isNotNull}"><input codeName="${it.normFileName}" isNull="${it.isNotNull}" type="hidden" name="filesUuid" value="${it.filesUuid}"><input type="hidden" name="normId" value="${it.normId}" /><input type="hidden" name="normFileName" value="${it.normFileName}" /><label class="none" for="normFile${index}">添加</label>
				</div>
				{@/each}
				{@/each}
			</script>
		</div>
		<p style="margin-top: 30px; ">
			<div class="line5"></div>
			<div class="loan_type">选择放款箱</div>
			<div class="line6"></div>
		</p>
		<table class="loan_table" cellspacing="0px" cellpadding="0px">
			<tr class="loan_tr">
				<th>序号</th>
				<th>箱号</th>
				<th>运单号</th>
				<th class="bt">货物</th>
				<th class="none">融资单价</th>
				<th class="sp">应放金额</th>
				<th class="none">差额</th>
				<th>状态</th>
				<th>操作</th>
			</tr>
			<tr class="loan_tr1">
				<th>序号</th>
				<th>入库单编号</th>
				<th>仓库</th>
				<th class="bt">货物</th>
				<th class="none">融资单价</th>
				<th class="sp">应放金额</th>
				<th class="none">差额</th>
				<th>入库量</th>
				<th>重量</th>
				<th>状态</th>
				<th>操作</th>
			</tr>
			<tbody id="bulkstockLoanNoticeListBody"></tbody>
			<script type="text/template" id="bulkstockLoanNoticeTpl1">
				{@each containerInventorys as it,index}
				{@if it.type != 3}
				<tr caseNumber="${it.caseNumber}" financeNumber="${it.financeNumber}" type="${it.type}" settlementPrice="${it.settlementPrice}" adjustment="${it.adjustment}" class="tr_style table-data {@if it.loanNoticeId===0}{@else}trBackgroundColor{@/if}" inventoryId="${it.inventoryId}">
					<td>${index*1 + 1}</td>
					<td>
						${it.caseNumber}
					</td>
					<td>${it.warehouseName}</td>
					<td class="bt">
						{@each it.containerBulkstocks as that} ${that.bulkstockName}(${that.specification})
						<br> {@/each}
					</td>
					<td class="none">
						{@each it.containerBulkstocks as that} &#65509;
						<span class="bulkstockValuation none">${that.financePrice}</span>
						<span>${formatCurrency(that.financePrice)}</span>
						<br> {@/each}
					</td>
					<td>
						{@if it.type == '2' || it.type == '3' }
						${formatCurrency(it.settlementPrice)}
						{@else}
						{@each it.containerBulkstocks as that}&#65509;
						<span class="financeValuation none">${that.financeValuation}</span>
						<span>${formatCurrency(that.financeValuation*1+it.adjustment)}</span>
						<br> {@/each}
						{@/if}
					</td>
					<td class="none">&#65509;${it.adjustment}</td>
					<td>
						{@each it.containerBulkstocks as that} ${that.quantity}
						<br> {@/each}
					</td>
					<td>
						{@each it.containerBulkstocks as that} ${that.weight}吨
						<br> {@/each}
					</td>
					<td>
						${getValueByKey(5, it.supervisionState)}
					</td>
					<td>
						<a href="javascript:void(0);" class="detail">详情</a>
					</td>
				</tr>
				{@/if}
				{@/each}
			</script>
			<script type="text/template" id="bulkstockLoanNoticeTpl">
				{@each containerInventorys as it,index}
				{@if it.type != 3}
				<tr type="${it.type}" settlementPrice="${it.settlementPrice}" adjustment="${it.adjustment}" class="tr_style table-data {@if it.loanNoticeId===0}{@else}trBackgroundColor{@/if}" inventoryId="${it.inventoryId}">
					<td>${index*1 + 1}</td>
					<td>
						${it.caseNumber}
					</td>
					<td>${it.waybillNumber}</td>
					<td class="bt">
						{@each it.containerBulkstocks as that} ${that.bulkstockName}(${that.specification})-- ${that.quantity}(${that.unit})-- ${that.weight}(吨)--${that.volume}(m³)
						<br> {@/each}
					</td>
					<td class="none">
						{@each it.containerBulkstocks as that} &#65509;
						<span class="bulkstockValuation none">${that.financePrice}</span>
						<span>${formatCurrency(that.financePrice)}</span>
						<br> {@/each}
					</td>
					<td>
						{@if it.type == '2' || it.type == '3' }
						${formatCurrency(it.settlementPrice)}
						{@else}
						{@each it.containerBulkstocks as that}&#65509;
						<span class="financeValuation none">${that.financeValuation}</span>
						<span>${formatCurrency(that.financeValuation*1+it.adjustment)}</span>
						<br> {@/each}
						{@/if}
					</td>
					<td class="none">&#65509;${it.adjustment}</td>
					<td>
						${getValueByKey(5, it.supervisionState)}
					</td>
					<td>
						<a href="javascript:void(0);" class="detail">详情</a>
					</td>
				</tr>
				{@/if}
				{@/each}
			</script>
		</table>
		
		<table class="loan_table1 table" cellspacing="0px" cellpadding="0px">
			<script type="text/template">
				<tr>
					<th>序号</th>
					<th>应收金额</th>
					<th>应收账款对价</th>
					<th>发票金额</th>
					<th>对应买方</th>
					<th>发票号码</th>
					<th>发票日期</th>
					<th>预计到期</th>
					<th>锁定日期</th>
					<th>经办人</th>
					<th>经办单位</th>
					<th>状态</th>
					<th>其他</th>
					<th>附件信息</th>
				</tr>
				{@each containerInventorys as item,index}
				{@if item.type == 3}
				<tr>
					<td>${index*1+1}</td>
					<td>${formatCurrency(item.receivableAmount)}</td>
					<td>${formatCurrency(item.factoringAmount)}</td>
					<td>${formatCurrency(item.invoiceAmount)}</td>
					<td>${item.purchaser}</td>
					<td>${item.invoiceNumber}</td>
					<td>${(item.invoiceDate).substr(0, 10)}</td>
					<td>${(item.dueDate).substr(0, 10)}</td>
					<td>${item.confirmDateTime}</td>
					<td>${item.confirmAccount}</td>
					<td>${item.logisticsCompanyName}</td>
					<td>已监管</td>
					<td>${item.othersRemark}</td>
					<td>
						{@if item.fileUuid != ""}
						  <a target="_blank" href="/finance/api/v1.0/downloadFile.file?fileUuid=${item.fileUuid}">${inquireFile(item.fileUuid)}</a>&nbsp;&nbsp;
						{@/if}
					</td>
				</tr>
				{@/if}
				{@/each}
			</script>
		</table>

		<div id="bulkstockPagenation" class="pagerCon"></div>
		<div class="line7"></div>
		<!--<div class="loan_info5 multistageAudit">
			<input class="submitState" type="hidden" name="auditSubmitState1" />
			<span class="input-loan1">
			运营审核: <select class="auditState1" name="auditState"><option value="">请选择</option><option value="true">同意</option><option value="false">拒绝</option></select>
				<span class="auditInfo">审核人：<span class="data" name="auditor1"></span>&nbsp;&nbsp;&nbsp;&nbsp;审核时间<span class="data" name="auditDate1"></span></span>
				<div>
					<input type="hidden" name="auditType" value="7" />
					<textarea class="audit1" name="audit"></textarea>
					<div style="display: inline-block">
						<input permissionid="loanNoticeAudit1_1" class="button-Save button-submit none" type="button" value="保存" style="height: 40px; margin-left: 5px;"><br />
						<input permissionid="loanNoticeAudit1_1" class="button-Submit button-submit none" type="button" value="提交" style="height: 40px; margin-left: 5px;">
					</div>
				</div>
			</span>
		</div>
		<div class="loan_info5 multistageAudit">
			<input class="submitState" type="hidden" name="auditSubmitState2" />
			<span class="input-loan1">
			运营领导审核: <select class="auditState2" name="auditState"><option value="">请选择</option><option value="true">同意</option><option value="false">拒绝</option></select>
				<span class="auditInfo">审核人：<span class="data" name="auditor2"></span>&nbsp;&nbsp;&nbsp;&nbsp;审核时间<span class="data" name="auditDate2"></span></span>
				<div>
					<input type="hidden" name="auditType" value="8" />
					<textarea class="audit2" name="audit"></textarea>
					<div style="display: inline-block">
						<input permissionid="loanNoticeAudit2_1" class="button-Save button-submit none" type="button" value="保存" style="height: 40px; margin-left: 5px;"><br />
						<input permissionid="loanNoticeAudit2_1" class="button-Submit button-submit none" type="button" value="提交" style="height: 40px; margin-left: 5px;">
					</div>
				</div>
			</span>
		</div>-->
		<!--<div class="loan_info5 multistageAudit">
			<input class="submitState" type="hidden" name="businessAuditSubmitState" />
			<span class="input-loan1">
			风控审核: <select class="businessAuditState" name="auditState"><option value="">请选择</option><option value="true">同意</option><option value="false">拒绝</option></select>
				<span class="auditInfo">审核人：<span class="data" name="businessAuditor"></span>&nbsp;&nbsp;&nbsp;&nbsp;审核时间<span class="data" name="businessAuditDate"></span></span>
				<div>
					<input type="hidden" name="auditType" value="1" />
					<textarea class="businessAudit" name="audit"></textarea>
					<div style="display: inline-block">
						<input permissionid="loanNoticeBusinessAudit_1" class="button-Save button-submit none" type="button" value="保存" style="height: 40px; margin-left: 5px;"><br />
						<input permissionid="loanNoticeBusinessAudit_1" class="button-Submit button-submit none" type="button" value="提交" style="height: 40px; margin-left: 5px;">
					</div>
				</div>
			</span>
		</div>
		<div class="loan_info5 multistageAudit">
			<input class="submitState" type="hidden" name="operationAuditSubmitState" />
			<span class="input-loan1">
				风控领导审核: <select class="operationAuditState" name="auditState"><option value="">请选择</option><option value="true">同意</option><option value="false">拒绝</option></select>
					<span class="auditInfo">审核人：<span class="data" name="operationAuditor"></span>&nbsp;&nbsp;&nbsp;&nbsp;审核时间<span class="data" name="operationAuditDate"></span></span>
				<div>
					<input type="hidden" name="auditType" value="2" />
					<textarea class="operationAudit" name="audit"></textarea>
					<div style="display: inline-block">
						<input permissionid="loanNoticeOperationAudit_1" class="button-Save button-submit none" type="button" value="保存" style="height: 40px; margin-left: 5px;"><br />
						<input permissionid="loanNoticeOperationAudit_1" class="button-Submit button-submit none" type="button" value="提交" style="height: 40px; margin-left: 5px;">
					</div>
				</div>	
			</span>
		</div>-->
		<a href="javascript:void(0);" class="auditRecord">查看审批记录</a>
		<div class="loan_info5 multistageAudit">
			<input class="submitState" type="hidden" name="financialAuditSubmitState" />
			<span class="input-loan1">
				资金审核: <select class="financialAuditState" name="auditState"><option value="">请选择</option><option value="true">同意</option><option value="false">拒绝</option></select>
					<span class="auditInfo">审核人：<span class="data" name="financialAuditor"></span>&nbsp;&nbsp;&nbsp;&nbsp;审核时间<span class="data" name="financialAuditDate"></span></span>
				<div>
					<input type="hidden" name="auditType" value="3" />
					<textarea class="financialAudit" name="audit"></textarea>
					<div style="display: inline-block; vertical-align: middle;">
						<input permissionid="loanNoticeFinancialAudit_1" class="button-Save button-submit none" type="button" value="保存" style="height: 40px; margin-left: 5px;"><br />
						<input permissionid="loanNoticeFinancialAudit_1" class="button-Submit button-submit none" type="button" value="提交" style="height: 40px; margin-left: 5px;">
					</div>
				</div>	
			</span>
		</div>
		<div class="loan_info5 multistageAudit">
			<input class="submitState" type="hidden" name="financialLeaderAuditSubmitState" />
			<span class="input-loan1">
				资金领导审核: <select class="financialLeaderAuditState" name="auditState"><option value="">请选择</option><option value="true">同意</option><option value="false">拒绝</option></select>
					<span class="auditInfo">审核人：<span class="data" name="financialLeaderAuditor"></span>&nbsp;&nbsp;&nbsp;&nbsp;审核时间<span class="data" name="financialLeaderAuditDate"></span></span>
				<div>
					<input type="hidden" name="auditType" value="4" />
					<textarea class="financialLeaderAudit" name="audit"></textarea>
					<div style="display: inline-block; vertical-align: middle;">
						<input permissionid="loanNoticeFinancialLeaderAudit_1" class="button-Save button-submit none" type="button" value="保存" style="height: 40px; margin-left: 5px;"><br />
						<input permissionid="loanNoticeFinancialLeaderAudit_1" class="button-Submit button-submit none" type="button" value="提交" style="height: 40px; margin-left: 5px;">
					</div>
				</div>	
			</span>
		</div>
		<div class="loan_info5 multistageAudit">
			<input class="submitState" type="hidden" name="leader1AuditSubmitState" />
			<span class="input-loan1">
				副总经理审核: <select class="leader1AuditState" name="auditState"><option value="">请选择</option><option value="true">同意</option><option value="false">拒绝</option></select>
					<span class="auditInfo">审核人：<span  class="data" name="leader1Auditor"></span>&nbsp;&nbsp;&nbsp;&nbsp;审核时间<span class="data" name="leader1AuditDate"></span></span>
				<div>
					<input type="hidden" name="auditType" value="6" />
					<textarea class="leader1Audit" name="audit"></textarea>
					<div style="display: inline-block; vertical-align: middle;">
						<input permissionid="loanNoticeLeader1Audit_1" class="button-Save button-submit none" type="button" value="保存" style="height: 40px; margin-left: 5px;"><br />
						<input permissionid="loanNoticeLeader1Audit_1" class="button-Submit button-submit none" type="button" value="提交" style="height: 40px; margin-left: 5px;">
					</div>
				</div>
			</span>
		</div>
		<!--<div class="loan_info5 multistageAudit">
			<input class="submitState" type="hidden" name="leader2AuditSubmitState" />
			<span class="input-loan1">
			总经理审核: <select class="leader2AuditState" name="auditState"><option value="">请选择</option><option value="true">同意</option><option value="false">拒绝</option></select>
				<span class="auditInfo">审核人：<span class="data" name="leader2Auditor"></span>&nbsp;&nbsp;&nbsp;&nbsp;审核时间<span class="data" name="leader2AuditDate"></span></span>
				<div>
					<input type="hidden" name="auditType" value="5" />
					<textarea class="leader2Audit" name="audit"></textarea>
					<div style="display: inline-block; vertical-align: middle;">
						<input permissionid="loanNoticeLeader2Audit_1" class="button-Save button-submit none" type="button" value="保存" style="height: 40px; margin-left: 5px;"><br />
						<input permissionid="loanNoticeLeader2Audit_1" class="button-Submit button-submit none" type="button" value="提交" style="height: 40px; margin-left: 5px;">
					</div>
				</div>
			</span>
		</div>-->
		<!--<div class="loan_info5 multistageAudit">
			<input class="submitState" type="hidden" name="auditSubmitState1" />
			<span class="input-loan1">
			董事长审核: <select class="auditState1" name="auditState"><option value="">请选择</option><option value="true">同意</option><option value="false">拒绝</option></select>
				<span class="auditInfo">审核人：<span class="data" name="auditor1"></span>&nbsp;&nbsp;&nbsp;&nbsp;审核时间<span class="data" name="auditDate1"></span></span>
				<div>
					<input type="hidden" name="auditType" value="7" />
					<textarea class="audit1" name="audit"></textarea>
					<div style="display: inline-block; vertical-align: middle;">
						<input permissionid="loanNoticeAudit1_1" class="button-Save button-submit none" type="button" value="保存" style="height: 40px; margin-left: 5px;"><br />
						<input permissionid="loanNoticeAudit1_1" class="button-Submit button-submit none" type="button" value="提交" style="height: 40px; margin-left: 5px;">
					</div>
				</div>
			</span>
		</div>-->
	</div>
<!--<div class="dialogBtn agree none permissionLink" permissionid="loanNoticeConsent_1">审核提交</div>
<div class="dialogBtn oppose none permissionLink" permissionid="loanNoticeConsent_1">审核拒绝</div>-->
</div>